/**
 * Description: 
 * version: 1.0
 * Author: Zero
 * Date: 2021-10-21 00:37:20
 * LastEditors: Zero
 * LastEditTime: 2021-10-24 16:57:26
 */
#ifndef LIB74HC595_H_INCLUDED
#define LIB74HC595_H_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif 

#include "driver/gpio.h"

#define SRCLK_PIN 21
#define SRCLK_PIN_SEL  (1ULL<<SRCLK_PIN) 
#define RCLK_PIN 22
#define RCLK_PIN_SEL  (1ULL<<RCLK_PIN) 
#define DATA_PIN 19
#define DATA_PIN_SEL  (1ULL<<DATA_PIN) 

void HC595LibInit(void);
void Hc595SendByte(unsigned char dat);
void Hc595DisplayFrame(unsigned char pDat[]);
void Hc595DisplayNum(unsigned char pDat[]);

#ifdef __cplusplus
}
#endif

#endif